package com.ozo.cloud.api.manage.feign;

import com.ozo.cloud.api.manage.vo.SysRoleVO;
import com.ozo.cloud.common.base.model.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 角色服务调用
 *
 * @author qiangesoft
 * @date 2024-09-11
 */
@FeignClient(name = "ozo-cloud-manage", contextId = "role", path = "/manage")
public interface SysRoleFeignClient {

    @GetMapping("/role/listByUserId")
    ResultVO<List<SysRoleVO>> listByUserId(@RequestParam("userId") Long userId);

}
